package Yang.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/*
    @Component:等价于<bean id="user" class="Yang.pojo.User"/>
*/
@Component
public class User {
    @Value("杨锐")
    public String name;
}
